<?php /* @var $storage Storage */ ?>

<?php if( $storage->allowToOutput() ): /* This file is possible to sent to browser */ ?>
    <?php echo link_to(
                    image_tag(
                        'zoom.png'
                        , array(
                            'border' => '0'
                            , 'alt' => __('View file')
                            , 'title' => __('View file')
                        )
                    )
                    , 'storage/view?uid=' . $storage->getUname()
    )?>
<?php endif; ?>

<?php echo link_to(
                image_tag(
                    'download.png'
                    , array(
                        'border' => '0'
                        , 'alt' => __('Download file')
                        , 'title' => __('Download file')
                    )
                )
                , 'storage/get?uid=' . $storage->getUname())?>